-- GENERATED SPELL FOR [Scion of Storm] --


function spell0_30184(pUnit, Event) --@Kinetic Beam,n/a--
pUnit:FullCastSpellOnTarget(57480,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30184', 1500, 1)
end

function spell1_30184(pUnit, Event) --@Zephyr,n/a--
pUnit:FullCastSpellOnTarget(50215,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30184', 15000, 1)
end

function Sorts_30184(pUnit, Event)
local choix_sorts_30184 = math.random(0, 1)
if choix_sorts_30184 == 0 then
pUnit:RegisterEvent('spell0_30184', 1, 1)
end
if choix_sorts_30184 == 1 then
pUnit:RegisterEvent('spell1_30184', 1, 1)
end
end

function mob30184_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30184', math.random(1500, 3000), 1)
end

function mob30184_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30184_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30184_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30184, 1, 'mob30184_Action')
RegisterUnitEvent(30184, 2, 'mob30184_Leave')
RegisterUnitEvent(30184, 3, 'mob30184_Kill')
RegisterUnitEvent(30184, 4, 'mob30184_Die')
